package com.fortune.service;

import com.fortune.dto.in.dSpecification.DSpecificationAddDto;
import com.fortune.dto.in.dSpecification.DSpecificationEditDto;
import com.fortune.dto.in.dSpecification.DSpecificationListDto;
import com.fortune.vo.dProduct.DProduceSpecification;
import com.fortune.vo.dSpecification.DSpecification;

import java.util.List;

public interface DSpecificationService {

    /**
     * 查询规格码表
     * @param did
     * @param specificationListDto
     * @return
     */
    List<DSpecification> queryDSpecificationList(String did, DSpecificationListDto specificationListDto);

    /**
     * 查询规格码表个数
     * @param did
     * @param specificationListDto
     * @return
     */
    int queryDSpecificationListCount(String did, DSpecificationListDto specificationListDto);

    /**
     * 添加规格
     * @param did
     * @param specificationAddDto
     * @return
     */
    int addDSpecification(String did, DSpecificationAddDto specificationAddDto);

    /**
     * 编辑规格
     * @param did
     * @param specificationEditDto
     * @return
     */
    int editDSpecification(String did, DSpecificationEditDto specificationEditDto);

    /**
     * 删除规格
     * @param did
     * @param specificationId
     * @return
     */
    int deleteDSpecification(String did, String specificationId);

    /**
     * 添加时查重
     * @param did
     * @param specificationAddDto
     * @return
     */
    int queryAddDSpecificationExist(String did, DSpecificationAddDto specificationAddDto);

    /**
     * 编辑时查重
     * @param did
     * @param specificationEditDto
     * @return
     */
    int queryEditDSpecificationExist(String did, DSpecificationEditDto specificationEditDto);

    /**
     * 查询规格码表
     * @param did
     * @return
     */
    List<DProduceSpecification> queryProduceDSpecificationList(String did);

}
